﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace AddIn.EA.Architecture.Validation.BusinessEntity
{
    public class ValidateError
    {
        public string ItemName { get; set; }
        public string ErrorDescription { get; set; }
    }

    public class ValidateErrorList : List<ValidateError>
    {
        public void AddError(string itemName, string errorDescription)
        {
            this.Add(new ValidateError
            {
                ItemName = itemName,
                ErrorDescription = errorDescription
            });
        }

        public void AddNotesError(string itemName)
        {
            this.Add(new ValidateError
            {
                ItemName = itemName,
                ErrorDescription = "Notes não está preenchido no elemento"
            });
        }

    }
}
